package cn.lyjuan.android.demofive.view;

import android.app.Application;
import android.content.Context;

/**
 * Created by chad on 04/11/2017.
 */

public class MyApplication extends Application
{
    private static Context context;


    //返回
    public static Context getContextObject()
    {
        return context;
    }

    @Override
    public void onCreate()
    {
        super.onCreate();
        //获取Context
        context = getApplicationContext();
    }
}
